<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css"
	href="../static/bootstrap-3.3.7/dist/css/bootstrap-theme.min.css" />
<link rel="stylesheet" type="text/css"
	href="../static/bootstrap-3.3.7/dist/css/bootstrap.min.css" />
<script src="../static/js/jquery-1.12.4.min.js" type="text/javascript"
	charset="utf-8"></script>
<script src="../static/bootstrap-3.3.7/dist/js/bootstrap.min.js"
	type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	function ionclick() {
		var strcomment = document.getElementById('userreview').value;
		if (strcomment.length == 0) {
			alert('请填写评价内容');
			return false;
		}
	}
</script>
</head>

<body>
	<!--用户评价块-->
	<div id="usercommentcontent"
		style="weight: 1000px; height: 180px; text-align: center; padding-left: 415px; padding-top: 50px;">
		<form action="../SaveComcontent" method="post"
			onsubmit="return ionclick();">
			<div class="usercomment" style="width: 800px;">
				<div id="userimg" style="width: 150px; float: left">
					<!--商品id -->
					<input name="userid" style="display: none"
						value="<%=session.getAttribute("userTel")%>" /> <a id="phoneid"
						name="phoneid" href="../sj/product.jsp"
						style="text-decoration: none; color: #000000;">商品名：<br>联想5s&nbsp;3GB+32GB&nbsp;烈焰红</a>
				</div>

				<div style="margin-left: 175px;">
					<textarea name="userreview" id="userreview" rows="5" cols="40"
						placeholder="请输入您的评论..." style="float: left;"></textarea>
				</div>
				<div class="submitbutton"
					style="padding-top: 35px; width: 0; margin-left: 535px;">
					<button type="submit" class="btn btn-success" id="btn" value="评论">评论</button>
				</div>
			</div>
		</form>
	</div>
	<div style="text-align: center">
		<a href="../cwx/perinfo.jsp" style="float: none">直接跳转到个人中心</a>
	</div>
</body>

</html>